package com.yc.ioc.bean4_ioc_import;

import com.yc.ioc.bean4_ioc_import.other.Apple;
import com.yc.ioc.bean4_ioc_import.other.Banana;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * @author zwei
 * @create 2024-07-29 8:33
 */
@Configuration
@Import(value = {Apple.class, Banana.class})
public class AppConfig_1 {
    @Bean
    public Apple a(){
        return new Apple();
    }
}
